﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Company.master" AutoEventWireup="true" CodeFile="Company_JobAD.aspx.cs" Inherits="Company_JobAD" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cph_Main" Runat="Server">
    <table>
        <tr>
            <td>
                <div class="Dialog" style="">
                    <div class="Title">
                        现有广告列表</div>
                    <div class="Content">
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
                            <Columns>
                                <asp:TemplateField HeaderText="广告标题" SortExpression="Title">
                                    <ItemTemplate>
                                        <%# Eval("Title") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="广告图片名称" SortExpression="Title">
                                    <ItemTemplate>
                                        <%# Eval("Content") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="操作" SortExpression="Title">
                                    <ItemTemplate>
                                        <asp:Button ID="btn_Edit" runat="server" CssClass="Button" Text="编辑" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </div>
                </div>
                <div class="Dialog" style="">
                    <div class="Title">
                        购买招聘广告服务</div>
                    <div class="Content">
                        <b>标题<br />
                        </b>
                        <asp:TextBox ID="txt_Title" runat="server"></asp:TextBox><br />
                        <b>广告类型</b>
                        <asp:RadioButtonList ID="jobADTypeList" runat="server" DataSourceID="LinqDataSource1"
                            DataTextField="CategoryName" DataValueField="ID">
                        </asp:RadioButtonList>
                        <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
                            ContextTypeName="AvatarDAL.AvatarDataContext" Select="new (ID, CategoryName)" 
                            TableName="ADCategory">
                        </asp:LinqDataSource>
                        <b>上传广告图</b><br />
                        <asp:FileUpload ID="FileUpload1" runat="server" />
                        <asp:HiddenField ID="txt_ID" runat="server" />
                        <br />
                        <asp:Button ID="btn_Submit" runat="server" Text="提交" CssClass="Button" OnClick="btn_Submit_Click" />
                        <br />
                        <asp:Label ID="lbl_Error" runat="server" EnableViewState="False" ForeColor="Red"></asp:Label>
                    </div>
                </div>
            </td>
        </tr>
    </table>
</asp:Content>

